Skip to main content

TsgDXFLayout

Unit: DXFConv

Description

Encapsulates the LAYOUT object of OBJECTS section. LAYOUT is a page of entities representation. DWG and DXF have Model (it is also TsgDXFLayout) and Layouts � the last can have viewports. Layouts in HPGL are pages. VIEWPORT.

Syntax

TsgDXFLayout = class(TsgDXFObjectEntity)

Properties

PropertiesDescription
CADSpace
IsEmptyThe property returns True, if this layout is empty.
IsModelThe property returns True, if this layout is Model_Space LAYOUT.
NameThe property sets/gets layout name.
PaperSpaceBlockThe property sets or gets PlotPaperUnits in the TsgPlotSettings structure.
PlotPaperUnitsThe property sets/gets the TsgDXFBlock class object.
PlotSettingsThe property sets or gets the PLOTSETTINGS object.
RotZAngle
UCSOriginThe property sets or gets UCS origin.
UCSXDirThe property sets or gets UCS X-axis.
UCSYDirThe property sets or gets UCS Y-axis.
Derived from TsgDXFEntityDescription
BoxThe property determines the 3d box embraced the entity.
ColorThe property gets or sets entity color.
ColorCADThe property gets or sets a color for drawing entities.
ComplexThe property determines whether a entity is populated with child entities.
ConverterThe property returns the TsgDXFConverter class object.
CountThe property indicates the total number of child entities.
EntitiesThe property lists all child entities.
EntTypeThe property indicates type of an entity.
HandleThe property is used for finding entity links.
LayerThe property points to layer, containing given primitive if this layer is given.
LineTypeThe property sets and gets line type for an entity.
LineTypeScaleThe property sets and gets the Linetype scale.
LineWeightThe property sets or gets line weight in millimeters.
PaperSpaceThe property indicates Model Space and Paper Space entity segregation.
SrcEndThe property indicates end position of the entity description in the source CAD file.
SrcStartThe property indicates start position of the entity description in the source CAD file.
VisibilityThe property sets and gets entities visibility.
VisibleThe property determines whether the component appears onscreen.

Methods

MethodsDescription
AddEntityThe method adds a child entity.
CreateCreates an instance of the TsgDXFLayout object.
DestroyFrees up internal objects before destroying the TsgDXFLayout class instance.
IterateThe method converts DXF/DWG tree structure to a linear sequence of entities, similar to Windows metafile.
RotMatrixThe method returns a coordinate-transformation matrix.
SetBoxThe method sets clip box for the layout.
SetRotMatrixThe method sets a coordinate-transformation matrix.
Derived from TsgDXFObjectEntityDescription
AssignEntityCopies properties of source entity to the TsgDXFObjectEntity class object.
Derived from TsgDXFEntityDescription
CloneThe method copies properties of source entity to current entity (include Handle).
DrawThe method generates the OnDraw event.
EntNameThe method returns an entity name.
GetBoxPointsThe method is used in drawing cycle for fast checking whether the entity must be drawn.
GetThicknessThe method returns entity's thickness.
SetLTypeThe method sets line type of the entity.
SetLWeightThe method sets line weight width of the entity.

Events

Derived from TsgDXFEntityDescription
OnDrawThe event occurs when the Draw method is called.